
for i in range(16):
    print(i, "\t  ", end="")
print()
for i in range(16):
    print(i*7+1, "\t  ", end="")
